package com.open.capacity.employee.service.impl;


import com.open.capacity.common.exception.service.ServiceException;
import com.open.capacity.common.model.SysPermission;
import com.open.capacity.common.model.SysRole;
import com.open.capacity.common.web.PageResult;
import com.open.capacity.employee.dao.EmployeeDao;
import com.open.capacity.employee.dao.SysRolePermissionDao;
import com.open.capacity.employee.service.EmployeeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;
import java.util.Set;

@Slf4j
@Service
public class EmployeeImpl implements EmployeeService {

    @Autowired
    private SysRolePermissionDao rolePermissionDao;

    private EmployeeDao employeeDao;

//    @Override
//    public Set<SysPermission> findByRoleIds(Set<Long> roleIds)  throws ServiceException {
//        try {
//            return rolePermissionDao.findByRoleIds(roleIds);
//        } catch (Exception e) {
//            throw new ServiceException(e);
//        }
//    }

    @Override
    public PageResult<SysRole> findEmployee(Map<String, Object> params) throws ServiceException {
        return null;
    }
}
